package com.ibeetl.admin.aod.service.excel.task;

import com.ibeetl.admin.aod.service.excel.match.MatchManager;

import java.io.File;
import java.util.List;
import java.util.concurrent.Callable;

public class ExcelCompareTask implements Callable<Integer> {

    private List<File> needProcessFileList;

    private String batchNo;

    private MatchManager matchManager;

    public ExcelCompareTask(List<File> needProcessFileList, String batchNo, MatchManager matchManager) {
        this.needProcessFileList = needProcessFileList;
        this.batchNo = batchNo;
        this.matchManager = matchManager;
    }

    @Override
    public Integer call() {

        matchManager.matchTwoFile(batchNo, needProcessFileList);

        return 1;
    }
}
